
--HttpServer.lua

server = net.createServer(net.TCP, 30);

local function serverRecvCallback(socket, data)
    socket:send("fuck your monther"); 
end

local function serverConnectCallback(socket) 

    socket:on("receive", serverRecvCallback);
end

server:listen(80, serverConnectCallback);


